package com.example.KeepAccounts;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.fragment.app.Fragment;

import com.example.fresh.R;

public class Fragment_keepacounts  extends Fragment {
    public Fragment_keepacounts(){};

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        View view = inflater.inflate(R.layout.activity_main_keep_accounts, container, false);
        return view;
    }

    @Override
    public void onStart() {
        super.onStart();
        getView().findViewById(R.id.main_btn).setOnClickListener(v -> {
                    Intent intent = new Intent(getActivity(), RecordActivityForKeepAccounts.class);
                    startActivity(intent);
                }
        );
        getView().findViewById(R.id.main_graph).setOnClickListener(v -> {
                    Intent intent = new Intent(getActivity(), AnalysisActivityForKeepAccounts.class);
                    startActivity(intent);
                }
        );
    }
}
